const Notfind = resolve => require(['@/components/ERROR/404'], resolve)
const Index = resolve => require(['@/components/INDEX/Index'], resolve)


const AfterLogin = resolve => require(['@/components/AFTER-LOGIN/Index'], resolve)
const MyPoints = resolve => require(['@/components/AFTER-LOGIN/Mypoints'], resolve)
const MyCollections = resolve => require(['@/components/AFTER-LOGIN/Mycollections'], resolve)

const AboutUs = resolve => require(['@/components/AFTER-LOGIN/Aboutus'], resolve)
const UseHelp = resolve => require(['@/components/AFTER-LOGIN/ABOUT-US/Usehelp'], resolve)
const Introduce = resolve => require(['@/components/AFTER-LOGIN/ABOUT-US/Introduce'], resolve)
const Protocol = resolve => require(['@/components/AFTER-LOGIN/ABOUT-US/Protocol'], resolve)

const Recommend = resolve => require(['@/components/AFTER-LOGIN/Recommend'], resolve)

const Settings = resolve => require(['@/components/AFTER-LOGIN/Settings'], resolve)
const ChangePassword = resolve => require(['@/components/AFTER-LOGIN/SETTINGS/Changepassword'], resolve)


const Login = resolve => require(['@/components/LOGIN-REG/Login'], resolve)
const Regist = resolve => require(['@/components/LOGIN-REG/Regist'], resolve)
const CodeLogin = resolve => require(['@/components/LOGIN-REG/CodeLogin'], resolve)
const ResetPassword = resolve => require(['@/components/LOGIN-REG/ResetPassword'], resolve)


const MyLesson = resolve => require(['@/components/MY-LESSON/Index'], resolve)
const MyVideo = resolve => require(['@/components/MY-VIDEO/Index'], resolve)
const MyVideoList = resolve => require(['@/components/MY-VIDEO/Myvideolist'], resolve)


const InviteFriends = resolve => require(['@/components/INVITE-FRIENDS/Index'], resolve)
const InviteList = resolve => require(['@/components/INVITE-FRIENDS/Invitelist'], resolve)


const SeriesVideo = resolve => require(['@/components/SERIES-VIDEO/Index'], resolve)
const AllVideoList = resolve => require(['@/components/SERIES-VIDEO/Allvideolist'], resolve)
const SingleVideo = resolve => require(['@/components/SERIES-VIDEO/Singlevideo'], resolve)


const SeriesWord = resolve => require(['@/components/SERIES-WORD/Index'], resolve)
const SingleBook = resolve => require(['@/components/SERIES-WORD/Singlebook'], resolve)
const SearchWord = resolve => require(['@/components/SERIES-WORD/Searchword'], resolve)
const UnitWordsList = resolve => require(['@/components/SERIES-WORD/Unitwordslist'], resolve)
const SingleWord = resolve => require(['@/components/SERIES-WORD/Singleword'], resolve)


const AllVideoPay = resolve => require(['@/components/TO-PAY/AllVideoPay'], resolve)
const SingleVideoPay = resolve => require(['@/components/TO-PAY/SingleVideoPay'], resolve)
const WordPay = resolve => require(['@/components/TO-PAY/Wordpay'], resolve)


const routes = [{
    path:'*',
    name:'notfind',
    component:Notfind
}, {
    path: '/',
    name: 'index',
    component: Index
}, {
    path: '/login',
    name: 'login',
    component: Login
}, {
    path: '/regist',
    name: 'regist',
    component: Regist
}, {
    path: '/codelogin',
    name: 'codelogin',
    component: CodeLogin
}, {
    path: '/resetpassword',
    name: 'resetpassword',
    component: ResetPassword
}, {
    path: '/mylesson', //主页我已经订阅的单词课程
    name: 'mylesson',
    component: MyLesson,
    meta: { requiresAuth: true }
}, {
    path: '/myvideo', //主页我已订阅的视频  
    name: 'myvideo',
    component: MyVideo,
    meta: { requiresAuth: true }
}, {
    path: '/myvideolist', 
    name: 'myvideolist',
    component: MyVideoList,
    meta: { requiresAuth: true }
}, {
    path: '/invitefriends', //主页点击邀请好友
    name: 'invitefriends',
    component: InviteFriends,
    meta: { requiresAuth: true }
}, {
    path: '/invitelist', //邀请好友列表
    name: 'invitelist',
    component: InviteList
}, {
    path: '/seriesvideo',
    name: 'seriesvideo',
    component: SeriesVideo,
    meta: { requiresAuth: true }
}, {
    path: '/allvideolist',
    name: 'allvideolist',
    component: AllVideoList,
    meta: { requiresAuth: true }
}, {
    path: '/singlevideo',
    name: 'singlevideo',
    component: SingleVideo,
    meta: { requiresAuth: true }
}, {
    path: '/seriesword',
    name: 'seriesword',
    component: SeriesWord,
    meta: { requiresAuth: true }
}, {
    path: '/singlebook',
    name: 'singlebook',
    component: SingleBook,
    meta: { requiresAuth: true }
}, {
    path: '/searchword',
    name: 'searchword',
    component: SearchWord,
    meta: { requiresAuth: true }
}, {
    path: '/unitwordslist',
    name: 'unitwordslist',
    component: UnitWordsList,
    meta: { requiresAuth: true }
}, {
    path: '/singleword',
    name: 'singleword',
    component: SingleWord,
    meta: { requiresAuth: true }
}, {
    path: '/allvideopay',
    name: 'allvideopay',
    component: AllVideoPay,
    meta: { requiresAuth: true }
}, {
    path: '/singlevideopay',
    name: 'singlevideopay',
    component: SingleVideoPay,
    meta: { requiresAuth: true }
}, {
    path: '/wordpay',
    name: 'wordpay',
    component: WordPay,
    meta: { requiresAuth: true }
}, {
    path: '/afterlogin',
    name: 'afterlogin',
    component: AfterLogin,
    meta: { requiresAuth: true }
}, {
    path: '/mypoints',
    name: 'mypoints',
    component: MyPoints
}, {
    path: '/mycollections',
    name: 'mycollections',
    component: MyCollections
}, {
    path: '/aboutus',
    name: 'aboutus',
    component: AboutUs
}, {
    path: '/usehelp',
    name: 'usehelp',
    component: UseHelp
}, {
    path: '/introduce',
    name: 'introduce',
    component: Introduce
}, {
    path: '/protocol',
    name: 'protocol',
    component: Protocol
}, {
    path: '/recommend',
    name: 'recommend',
    component: Recommend
}, {
    path: '/settings',
    name: 'settings',
    component: Settings
}, {
    path: '/changepassword',
    name: 'changepassword',
    component: ChangePassword
}]

export default routes
